﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace CSP.Package.Controls
{
    public partial class InstallationSummary : UserControl, IInstallationControl
    {
        public InstallationSummary()
        {
            InitializeComponent();
        }

        #region IInstallationControl Members

        private Installer _form;
        public Installer GetForm()
        {
            return _form;
        }

        public void SetForm(Installer installer)
        {
            _form = installer;
        }

        public bool Next()
        {
            GetForm().AddToLog("----------------------------------------------");
            GetForm().AddToLog(CSP.Package.labels.CspInstallLog_InstallationEnds);
            richTextBox1.Text = GetForm().GetLog();
            return true;
        }

        public void Previous()
        {
        }

        public void Skip()
        {
        }

        #endregion

        private void InstallationSummary_Load(object sender, EventArgs e)
        {
            TranslateLiterals();
        }

        private void TranslateLiterals()
        {
            richTextBox1.Text = CSP.Package.labels.InstallationSummary_Intro;
        }
    }
}
